package com.sun.pojo.entity;

import java.io.Serial;
import java.io.Serializable;

/**
 * @author SunRui
 * @description 权限分配类
 * @date 2024/10/5 15:55
 */
public class UserRole implements Serializable {
    @Serial
    private static final long serialVersionUID = -8802460574092321022L;
    private int id;//权限分配表Id
    private int userId;//用户Id
    private int roleId;//权限Id

    @Override
    public String toString() {
        return "UserRole{" +
                "id=" + id +
                ", userId=" + userId +
                ", roleId=" + roleId +
                '}';
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public int getRoleId() {
        return roleId;
    }

    public void setRoleId(int roleId) {
        this.roleId = roleId;
    }
}
